package com.car.dal.object;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.List;

import com.car.annotation.DBField;
import com.car.annotation.DBTable;


@DBTable(tableName = "teacher", defaultSort = "id", defaultDir = "desc")
public class Teacher implements Comparable<Teacher>{
	@DBField(field="id")
	private Long id ;
	@DBField(field="type")
	private Integer type ;
	@DBField(field="position")
	private Integer position ;
	
	@DBField(field="login_name")
	private String login_name ;
	@DBField(field="password")
	private String password ;
	
	@DBField(field="phone")
	private String phone; 
	@DBField(field="address")
	private String address; 
	@DBField(field="email")
	private String email; 
	
	@DBField(field="ascription")
	private String ascription ;
	
	@DBField(field="center")
	private String center ;
	@DBField(field="state")
	private Integer state ;
	@DBField(field="powers")
	private String powers ;
	
	@DBField(field="images")
	private String images ;
	
	@DBField(field="name")
	private String name ;
	@DBField(field="create_time")
	private Date create_time;
	 
	@DBField(field="city")
	private String city ;
	
	
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	private String redCount;
	private String hasAudioCount;
	private String yixAudioCount;
	private String queAudioCount;
	
	private String startTime;
	private String endTime;
	
	private String count;
	private String tkcount;
	private double classes;
	
	private String beizhu;
	private String is_center;
	private String zon_time;
	private String centerId;
	private String time1;
	private String time2;
	private String time3;
	private String count1;
	private String time4;
	private String time5;
	private String time6;
	private String count2;
	private String time7;
	private String time8;
	private String time9;
	private String count3;
	private String time10;
	private String time11;
	private String time12;
	private String count4;
	private String time13;
	private String time14;
	private String time15;
	private String count5;
	private String time16;
	private String time17;
	private String time18;
	private String count6;
	private String time19;
	private String time20;
	private String time21;
	private String count7;
	private String time22;
	private String time23;
	private String count8;
	
	private String tea_name;
	

	@DBField(field="type2")
	private Integer type2 ;
	
	
	
	public Integer getType2() {
		return type2;
	}
	public void setType2(Integer type2) {
		this.type2 = type2;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public String getLogin_name() {
		return login_name;
	}
	public void setLogin_name(String login_name) {
		this.login_name = login_name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getCenter() {
		return center;
	}
	public void setCenter(String center) {
		this.center = center;
	}
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	public double getClasses() {
		return classes;
	}
	public void setClasses(double classes) {
		this.classes = classes;
	}
	
	public String getStartTime() {
		return startTime;
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	
	public String getRedCount() {
		return redCount;
	}
	public void setRedCount(String redCount) {
		this.redCount = redCount;
	}
	public String getHasAudioCount() {
		return hasAudioCount;
	}
	public void setHasAudioCount(String hasAudioCount) {
		this.hasAudioCount = hasAudioCount;
	}
	public String getQueAudioCount() {
		return queAudioCount;
	}
	public void setQueAudioCount(String queAudioCount) {
		this.queAudioCount = queAudioCount;
	}
	@Override
	public int compareTo(Teacher t) {
		// TODO Auto-generated method stub
		return (int) (this.classes - t.getClasses());
	}
	
	public static void main(String[] args) { 
		List<Teacher> tea = new ArrayList<Teacher>();
		Collections.sort(tea,new Comparator<Object>(){ 
			public int compare(Object o1, Object o2){
				return (o1.hashCode()-o2.hashCode());
			}
		});
	}
	public String getCount() {
		return count;
	}
	public void setCount(String count) {
		this.count = count;
	}
	public String getTkcount() {
		return tkcount;
	}
	public void setTkcount(String tkcount) {
		this.tkcount = tkcount;
	}
	public String getYixAudioCount() {
		return yixAudioCount;
	}
	public void setYixAudioCount(String yixAudioCount) {
		this.yixAudioCount = yixAudioCount;
	}
	public String getPowers() {
		return powers;
	}
	public void setPowers(String powers) {
		this.powers = powers;
	}
	public String getTime1() {
		return time1;
	}
	public void setTime1(String time1) {
		this.time1 = time1;
	}
	public String getTime2() {
		return time2;
	}
	public void setTime2(String time2) {
		this.time2 = time2;
	}
	public String getTime3() {
		return time3;
	}
	public void setTime3(String time3) {
		this.time3 = time3;
	}
	public String getCount1() {
		return count1;
	}
	public void setCount1(String count1) {
		this.count1 = count1;
	}
	public String getTime4() {
		return time4;
	}
	public void setTime4(String time4) {
		this.time4 = time4;
	}
	public String getTime5() {
		return time5;
	}
	public void setTime5(String time5) {
		this.time5 = time5;
	}
	public String getTime6() {
		return time6;
	}
	public void setTime6(String time6) {
		this.time6 = time6;
	}
	public String getCount2() {
		return count2;
	}
	public void setCount2(String count2) {
		this.count2 = count2;
	}
	public String getTime7() {
		return time7;
	}
	public void setTime7(String time7) {
		this.time7 = time7;
	}
	public String getTime8() {
		return time8;
	}
	public void setTime8(String time8) {
		this.time8 = time8;
	}
	public String getTime9() {
		return time9;
	}
	public void setTime9(String time9) {
		this.time9 = time9;
	}
	public String getCount3() {
		return count3;
	}
	public void setCount3(String count3) {
		this.count3 = count3;
	}
	public String getTime10() {
		return time10;
	}
	public void setTime10(String time10) {
		this.time10 = time10;
	}
	public String getTime11() {
		return time11;
	}
	public void setTime11(String time11) {
		this.time11 = time11;
	}
	public String getTime12() {
		return time12;
	}
	public void setTime12(String time12) {
		this.time12 = time12;
	}
	public String getCount4() {
		return count4;
	}
	public void setCount4(String count4) {
		this.count4 = count4;
	}
	public String getTime13() {
		return time13;
	}
	public void setTime13(String time13) {
		this.time13 = time13;
	}
	public String getTime14() {
		return time14;
	}
	public void setTime14(String time14) {
		this.time14 = time14;
	}
	public String getTime15() {
		return time15;
	}
	public void setTime15(String time15) {
		this.time15 = time15;
	}
	public String getCount5() {
		return count5;
	}
	public void setCount5(String count5) {
		this.count5 = count5;
	}
	public String getTime16() {
		return time16;
	}
	public void setTime16(String time16) {
		this.time16 = time16;
	}
	public String getTime17() {
		return time17;
	}
	public void setTime17(String time17) {
		this.time17 = time17;
	}
	public String getTime18() {
		return time18;
	}
	public void setTime18(String time18) {
		this.time18 = time18;
	}
	public String getCount6() {
		return count6;
	}
	public void setCount6(String count6) {
		this.count6 = count6;
	}
	public String getTime19() {
		return time19;
	}
	public void setTime19(String time19) {
		this.time19 = time19;
	}
	public String getTime20() {
		return time20;
	}
	public void setTime20(String time20) {
		this.time20 = time20;
	}
	public String getTime21() {
		return time21;
	}
	public void setTime21(String time21) {
		this.time21 = time21;
	}
	public String getCount7() {
		return count7;
	}
	public void setCount7(String count7) {
		this.count7 = count7;
	}
	public String getTime22() {
		return time22;
	}
	public void setTime22(String time22) {
		this.time22 = time22;
	}
	public String getTime23() {
		return time23;
	}
	public void setTime23(String time23) {
		this.time23 = time23;
	}
	public String getCount8() {
		return count8;
	}
	public void setCount8(String count8) {
		this.count8 = count8;
	}
	public String getIs_center() {
		return is_center;
	}
	public void setIs_center(String is_center) {
		this.is_center = is_center;
	}
	public String getCenterId() {
		return centerId;
	}
	public void setCenterId(String centerId) {
		this.centerId = centerId;
	}
	public String getZon_time() {
		return zon_time;
	}
	public void setZon_time(String zon_time) {
		this.zon_time = zon_time;
	}
	public String getBeizhu() {
		return beizhu;
	}
	public void setBeizhu(String beizhu) {
		this.beizhu = beizhu;
	}
	public String getTea_name() {
		return tea_name;
	}
	public void setTea_name(String tea_name) {
		this.tea_name = tea_name;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getAscription() {
		return ascription;
	}
	public void setAscription(String ascription) {
		this.ascription = ascription;
	}
	public String getImages() {
		return images;
	}
	public void setImages(String images) {
		this.images = images;
	}
	public Integer getPosition() {
		return position;
	}
	public void setPosition(Integer position) {
		this.position = position;
	}
	
	
	
}
